#include "ros/ros.h"
#include"demo_01/person.h"

void doMsg(const demo_01::person::ConstPtr &maf)
{
    ROS_INFO("I hear: %s,%d,%.2f",maf->name.c_str(),maf->age,maf->height);

}

int main(int argc,char * argv[])
{
    ros::init(argc,argv,"cuihua");
    ros::NodeHandle nh;
    ros::Subscriber sub=nh.subscribe("fang",10,doMsg);
    ros::spin();
    return 0;
}
